﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace KSS.Generator.Schema
{
    public class Association
    {
        private string _name;
        [XmlAttribute]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        private string _member;
        [XmlAttribute]
        public string Member
        {
            get { return _member; }
            set { _member = value; }
        }

        private string _thisKey;
        [XmlAttribute]
        public string ThisKey
        {
            get { return _thisKey; }
            set { _thisKey = value; }
        }

        private string _otherKey;
        [XmlAttribute]
        public string OtherKey
        {
            get { return _otherKey; }
            set { _otherKey = value; }
        }

        private string _type;
        [XmlAttribute]
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }

        private bool _isForeignKey;
        [XmlAttribute]
        public bool IsForeignKey
        {
            get { return _isForeignKey; }
            set { _isForeignKey = value; }
        }
    }
}
